#include <bits/stdc++.h>
using namespace std;

int n;
int main() {
    cin >> n;
    
    switch (n) {
        case 1:
        case 3:
        case 5:
            cout << "NO";
            break;
        default:
            cout << "YES";
    }
    return 0;
}